x86: explicitly mark __initdata variables as used when building with clang.
authorTim Deegan <tim@xen.org>
Wed, 11 Apr 2012 12:10:33 +0000 (13:10 +0100)
committerTim Deegan <tim@xen.org>
Wed, 11 Apr 2012 12:10:33 +0000 (13:10 +0100)
commit05db6ab3e5cbe1e5d7edaf7caaa246bb97bc45ca
tree810b79071d4d65f38f822cb5c6a494e0e284e06d
parent2b7aac76417d57e336f41b6f6d5b0cb301d512f8
x86: explicitly mark __initdata variables as used when building with clang.

This stops LLVM from replacing it with a different, auto-generated
variable as part of an optimization.  (The auto-generated variable
ends up in the normal data section.)

Remove stray __read_mostly annotations on declarations that this unmasked.

Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Keir Fraser <keir@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/oprofile/op_x86_model.h
xen/include/acpi/cpufreq/cpufreq.h
xen/include/xen/compiler.h